package io.bluerain.android.sdk.update.core;

import android.content.Context;
import io.bluerain.android.sdk.update.core.utils.AttachUtils;

import java.util.ResourceBundle;

/**
 * Created by foredawn on 15-9-21.
 * 起始入口
 */
public class Main {

    public static void init(Context context) {
        Constants.CURRENT_VERSION = AttachUtils.getCurVersion(context);
        Constants.PACKAGE_NAME = context.getPackageName();

        ResourceBundle configBundle = ResourceBundle.getBundle("config");
        Constants.SERVER_ADDRESS = configBundle.getString("server.address");
        Constants.PARAM_VERSION_KEY = configBundle.getString("param.version.key");


        configBundle = null;
    }
}
